﻿<Fluent:RibbonWindow x:Class="SGT.Views.NuevoDepositoView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:Fluent="clr-namespace:Fluent;assembly=Fluent"
        xmlns:s="http://www.stemasoft.com/xaml"
        mc:Ignorable="d"
        DataContext="{Binding ABMDepositos, Source={StaticResource Locator}}"
  Background="{Binding Background, ElementName=navigationPaneExpander}" ResizeMode="CanResizeWithGrip" Width="600" Height="651">

    <Fluent:RibbonWindow.Resources>
        <ResourceDictionary>
            <BooleanToVisibilityConverter x:Key="boolToVis" />

            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/ReuxablesLegacy;component/mercury.xaml" />
            </ResourceDictionary.MergedDictionaries>


        </ResourceDictionary>
    </Fluent:RibbonWindow.Resources>


    <DockPanel LastChildFill="True">
        <Fluent:Ribbon DockPanel.Dock="Top" Title="Trabajar con depositos" >
            <!--Quick Access Toolbar Items-->
            <Fluent:Ribbon.QuickAccessItems>
                <Fluent:QuickAccessMenuItem Target="{Binding ElementName=buttonGreen}"/>
            </Fluent:Ribbon.QuickAccessItems>
            <Fluent:RibbonTabItem Header="Establecer" ReduceOrder="(P),(P),(P),(P),(P)" x:Name="EditarTab" >
                <Fluent:RibbonGroupBox Header="Ejecutar">
                    <Fluent:Button LargeIcon="/SGT;component/Img/save32x32.png"  Header="Guardar" Command="{Binding EstablecerDepositoActual}" />
                    <Fluent:Button LargeIcon="/SGT;component/Img/errorIcon.png"  Header="Cerrar"  Command="{Binding IrAEntradaRemitosDeposito}"/>
                </Fluent:RibbonGroupBox>
            </Fluent:RibbonTabItem>

        </Fluent:Ribbon>

        <Grid Background="White" Margin="12,144,12,11">
            <Label Content="Nombre:" HorizontalAlignment="Left" Margin="16,62,0,0" Name="label1" Height="25" VerticalAlignment="Top" />
            <Label Content="Ubicación:" Height="28" HorizontalAlignment="Left" Margin="16,103,0,0" Name="label2" VerticalAlignment="Top" />
            <TextBox Height="23" HorizontalAlignment="Left" Margin="90,64,0,0" Name="textBox1" VerticalAlignment="Top" Width="201" Text="{Binding Path=NuevoDepositoACrear.Nombre}" />
            <TextBox Height="48" HorizontalAlignment="Left" Margin="90,103,0,0" Name="textBox2" VerticalAlignment="Top" Width="201" TextWrapping="Wrap" Text="{Binding Path=NuevoDepositoACrear.Direccion}" />
            <Label Content="Sectores" Height="26" Margin="6,164,6,0" Name="label3" VerticalAlignment="Top" Background="#FFF0F0F0" FontWeight="Bold" Foreground="#FF3B3B3B" FontSize="11" />
        <DataGrid AutoGenerateColumns="False" Margin="16,241,26,26" Name="dataGrid1" ItemsSource="{Binding Path=NuevoDepositoACrear.ColeccionSectores,Mode=TwoWay}">
            <DataGrid.Columns>
                <DataGridTextColumn Binding="{Binding Path=Nombre}" Header="Nombre" Width="15*" />
                <DataGridTextColumn Binding="{Binding Path=Capacidad}" Header="Capacidad" Width="auto" />
                <DataGridTextColumn Binding="{Binding Path=TipoMercaderia.Nombre}" Header="Mercaderia" Width="15*"/>
            </DataGrid.Columns>
        </DataGrid>

        <Button Content="Agregar" Margin="0,204,26,0" Name="button1" Command="{Binding Path=NuevoSector}" HorizontalAlignment="Right" Width="75" Height="31" VerticalAlignment="Top" />
            <Button Content="Quitar" Margin="0,204,117,0" Name="button2" HorizontalAlignment="Right" Width="75" Height="31" VerticalAlignment="Top" />
            <Label Background="#FFF0F0F0" Content="Nuevo deposito" FontSize="11" FontWeight="Bold" Foreground="#FF3B3B3B" Height="26" Margin="6,17,6,0" Name="label4" VerticalAlignment="Top" />
        </Grid>
    </DockPanel>
</Fluent:RibbonWindow>
